import request from '@/utils/request'

// 查询智能门禁-告警列表
export function listPasses(query) {
  return request({
    url: '/passes/passes/list',
    method: 'get',
    params: query
  })
}

// 查询智能门禁-告警详细
export function getPasses(id) {
  return request({
    url: '/passes/passes/' + id,
    method: 'get'
  })
}

// 新增智能门禁-告警
export function addPasses(data) {
  return request({
    url: '/passes/passes',
    method: 'post',
    data: data
  })
}

// 修改智能门禁-告警
export function updatePasses(data) {
  return request({
    url: '/passes/passes',
    method: 'put',
    data: data
  })
}

// 删除智能门禁-告警
export function delPasses(id) {
  return request({
    url: '/passes/passes/' + id,
    method: 'delete'
  })
}
